﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AutoFillCenter
{
    public class MyFilter : IMessageFilter
    {
        private const int WM_ACTIVATEAPP = 0x001C;
        public bool PreFilterMessage(ref Message aMessage)
        {
            if (aMessage.Msg == WM_ACTIVATEAPP)
            {
                MessageBox.Show("asdasd");
            }
            // This can be either true of false

            // false enables the message to propagate to all other

            // listeners

            return false;
        }
    }
}
